// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PUR_PURCHASE_ARRIVED
// * CreateDate    : 2012/3/26 18:34:13
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/26 18:34:13
// * LastChanger   : 2012/3/26 18:34:13
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class PurPurchaseArrivedEntity : EntityBase
    {
        public PurPurchaseArrivedTable TableSchema
        {
            get
            {
                return PurPurchaseArrivedTable.Current;
            }
        }

        public PurPurchaseArrivedEntity()
        {

        }

        public PurPurchaseArrivedEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.ArrivedId = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_ID"]));
            this.ArrivedCode = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_CODE"]));
            this.ArrivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["ARRIVED_DATE"]));
            this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
            this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
            this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
            this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
            this.IsQualitychecked = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_QUALITYCHECKED"]));
        }

        public PurPurchaseArrivedEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.ArrivedId = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_ID"]));
            this.ArrivedCode = Convert.ToString(CommonFunctions.ToObject(dr["ARRIVED_CODE"]));
            this.ArrivedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["ARRIVED_DATE"]));
            this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
            this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
            this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
            this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
            this.IsQualitychecked = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_QUALITYCHECKED"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return PurPurchaseArrivedTable.Current;
            }
        }

        #region Perporty List
        public string ArrivedId
        {
            get { return Convert.ToString(GetData(PurPurchaseArrivedTable.C_ARRIVED_ID)); }
            set { SetData(PurPurchaseArrivedTable.C_ARRIVED_ID, value); }
        }

        public string ArrivedCode
        {
            get { return Convert.ToString(GetData(PurPurchaseArrivedTable.C_ARRIVED_CODE)); }
            set { SetData(PurPurchaseArrivedTable.C_ARRIVED_CODE, value); }
        }

        public DateTime ArrivedDate
        {
            get { return Convert.ToDateTime(GetData(PurPurchaseArrivedTable.C_ARRIVED_DATE)); }
            set { SetData(PurPurchaseArrivedTable.C_ARRIVED_DATE, value); }
        }

        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(PurPurchaseArrivedTable.C_CREATED_DATE)); }
            set { SetData(PurPurchaseArrivedTable.C_CREATED_DATE, value); }
        }

        public string CreatedBy
        {
            get { return Convert.ToString(GetData(PurPurchaseArrivedTable.C_CREATED_BY)); }
            set { SetData(PurPurchaseArrivedTable.C_CREATED_BY, value); }
        }

        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(PurPurchaseArrivedTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(PurPurchaseArrivedTable.C_LAST_MODIFIED_DATE, value); }
        }

        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(PurPurchaseArrivedTable.C_LAST_MODIFIED_BY)); }
            set { SetData(PurPurchaseArrivedTable.C_LAST_MODIFIED_BY, value); }
        }

        public string Remark
        {
            get { return Convert.ToString(GetData(PurPurchaseArrivedTable.C_REMARK)); }
            set { SetData(PurPurchaseArrivedTable.C_REMARK, value); }
        }

        public int IsQualitychecked
        {
            get { return Convert.ToInt32(GetData(PurPurchaseArrivedTable.C_IS_QUALITYCHECKED)); }
            set { SetData(PurPurchaseArrivedTable.C_IS_QUALITYCHECKED, value); }
        }

        #endregion
    }


}

